package edu.spec.wechat.model;

/**
 * Created by MadFrog on 2016/10/14.
 */
public class WechatFianlValue {
    // xiong2_print公众号
//    public static String APPID = "wx2e73f1a06d7dbbd4";
//    public static String APPSECRET = "749ec5a20e1796cde9d98f743f0f66af";

    // 测试公众号gh_72d275870c20
//    public static String APPID = "wx5a0c226fbb503533";
//    public static String APPSECRET = "dea3ee42c024a370063771e469bc3031";

    //全局access_token
    public static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

    //菜单
    public static String MENU_CREATE = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";
    public static String MENU_GET = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";
    public static String MENU_DELETE = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";

    //消息
    public static String MSG_TEXT_TYPE = "text";
    public static String MSG_IMAGE_TYPE = "image";
    public static String MSG_VOICE_TYPE = "voice";
    public static String MSG_VIDEO_TYPE = "video";
    public static String MSG_SHORTVIDEO_TYPE = "shortvideo";
    public static String MSG_LOCATION_TYPE = "location";
    public static String MSG_LINK_TYPE = "link";
    public static String MSG_EVENT_TYPE = "event";

    //模板消息
    public static String SEND_TEMPLATE_MSG = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";

    //网页授权
    public final static String AUTH_GET_CODE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
    public final static String AUTH_GET_OPENID ="https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    //用户分组
    public final static String ADD_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/create?access_token=ACCESS_TOKEN";
    public final static String QUERY_ALL = "https://api.weixin.qq.com/cgi-bin/groups/get?access_token=ACCESS_TOKEN";
    public final static String QUERY_USER_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/getid?access_token=ACCESS_TOKEN";
    public final static String UPDATE_GROUP_NAME = "https://api.weixin.qq.com/cgi-bin/groups/update?access_token=ACCESS_TOKEN";
    public final static String MOVE_USER_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/members/update?access_token=ACCESS_TOKEN";
    public final static String MOVE_USERS_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/members/batchupdate?access_token=ACCESS_TOKEN";
    public final static String DELETE_GROUP = "https://api.weixin.qq.com/cgi-bin/groups/delete?access_token=ACCESS_TOKEN";

    //JS-SDK权限验证————获取jsapi_ticket
    public final static String GET_JSAPI_TICKET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";
}
